package com.sxt.springcloud.bus;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxt.bus.domain.Goods;
import com.sxt.bus.domain.Provider;
import com.sxt.bus.domain.Salesback;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxt.bus.vo.SalesbackVo;
import com.sxt.opd.domain.Patient;
import com.sxt.springcloud.bus.fallback.SalesbackClientFallbackService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import org.apache.commons.lang3.StringUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2019-12-26
 */
@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-BUS",fallbackFactory = SalesbackClientFallbackService.class)
@RequestMapping("/p/salesback")
public interface SalesbackClientService   {
    /**
     * 查询
     */
    @RequestMapping("loadAllSalesback")
     DataGridView loadAllSalesback(@RequestBody SalesbackVo salesbackVo);

    /**
     * 添加退货信息
     */
    @RequestMapping("addSalesback")
     ResultObj addSalesback(@RequestParam("id") Integer id, @RequestParam("number")Integer number, @RequestParam("remark")String remark);
}
